# Contributor: Martell Malone <martellmalone@gmail.com>
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
pkgname=py3-scipy
pkgver=1.5.2
pkgrel=0
pkgdesc="Python library for scientific computing"
url="https://www.scipy.org"
arch="all !mips !mips64"
license="BSD-3-Clause"
depends="py3-numpy-f2py"
makedepends="cython gfortran openblas-dev>=0.3.0 py3-numpy-dev py3-setuptools
	python3-dev lapack-dev py3-pybind11-dev"
source="https://github.com/scipy/scipy/releases/download/v$pkgver/scipy-$pkgver.tar.xz
	missing-int64_t.patch
	"
builddir="$srcdir"/scipy-$pkgver

replaces=py-scipy # Backwards compatibility
provides=py-scipy=$pkgver-r$pkgrel # Backwards compatibility

build() {
	export LDFLAGS="$LDFLAGS -shared"
	python3 setup.py config_fc --fcompiler=gnu95 build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="cef1f772b455dd219a2ebc990551a70767147f84d995b0dce60aaf7b643fba47d34276df7f48ce02ac49e4ed56a59a8e524ea36580a727b9ca08d9d509a77249  scipy-1.5.2.tar.xz
df346dc84e4ec6773e1e7fe21dccf6d124c8a498d4daba77d3abd399fef1aa711b9799541c5e7b6b3ee209c738817cc2680810dcd2c4ee61686292536e6b00d1  missing-int64_t.patch"
